package com.bdqn.ch10.config.shiro;

public class testShiroTester {
    public void testShiro(){
        System.out.println("是否认证通过："+subject.isAuthenticated());
        System.out.println("是否为管理员角色："+subject.hasRole("管理员"));
        System.out.println("是否能操作用户查看功能："+subject.isPermitted("user:view"));
        subject.checkPermission("user:view");
    }
}
